package com.carlinfo.stu_ques.question.pojo;


import java.io.Serializable;
import java.util.Date;

import com.carlinfo.stu_ques.common.util.DateUtile;

public class Question implements Serializable
{
	private int id;
	private String name;
	private int score;
	private int peopleNum;
	private Date creatTime;
	private Date endTime;
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public int getScore()
	{
		return score;
	}
	public void setScore(int score)
	{
		this.score = score;
	}
	public int getPeopleNum()
	{
		return peopleNum;
	}
	public void setPeopleNum(int peopleNum)
	{
		this.peopleNum = peopleNum;
	}
	public Date getCreatTime()
	{
		return creatTime;
	}
	public void setCreatTime(Date creatTime)
	{
		this.creatTime = creatTime;
	}
	public Date getEndTime()
	{
		return endTime;
	}
	public void setEndTime(Date endTime)
	{
		this.endTime = endTime;
	}
	DateUtile dateUtil = new DateUtile();
	public String toString()
	{
		String result =getId()+"\t"+ getName()+"\t"+getScore()+"\t"+getPeopleNum()+"\t\t\t"+dateUtil.dateTimeToStr(getCreatTime())+"\t"+dateUtil.dateTimeToStr(getEndTime());
		return  result; 		
	}
	
}
